package com.sxtyxt.volley;

import android.text.TextUtils;

import com.sxtyxt.entity.Address;
import com.sxtyxt.online.ActBase;
import com.sxtyxt.online.SystemEnv;

import org.w3c.dom.Text;

import java.util.HashMap;
import java.util.Map;

public class URL {

    private static String addressId;

    /**
     * 登陆参数
     *
     * @param remember_me
     * @param password
     * @param username
     * @return
     */
    public static Map<String, String> getLoginParams(String remember_me, String username, String password) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("remember_me", remember_me);
        map.put("password", password);
        map.put("userName", username);
        return map;
    }
    /**
     * 个人信息
     *
     * @param pkId
     *
     * @return
     */
    public static Map<String, String> getLoadingMyInfoParams(String pkId) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("pkId", pkId);
        return map;
    }
    /**
     * 第三方登录
     *
     * @param openId
     * @param type
     * @param sex
     * @param userName
     * @return
     */
    public static Map<String, String> getThirdLoginParams(String openId, String type, String sex, String userName) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("openId", openId);
        map.put("type", type);
        map.put("sex", sex);
        map.put("userName", userName);
        return map;
    }


    /**
     * 商品列表
     *
     * @param sortOrder  排序类型,desc降序,asc升序
     * @param sortField  排序的字段:goodsAddTime-上架时间 salenum-销量，goodsClick-人气，goodsStorePrice-价格
     * @param areaId     地区id
     * @param brandId    品牌id
     * @param pageNo     页码
     * @param keyword    要搜索的关键字的值
     * @param searchType 1. keywordSearch 关键词搜索 2. gcIdSearch 分类查找,在keyword设置对应的id 3. typeIdSearch 类型查找,在keyword设置对应的id
     * @return
     */
    public static Map<String, String> getGoodsListParams(String sortOrder, String sortField, String areaId, String brandId, int pageNo, String keyword, String searchType, String specFilter) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("sortOrder", sortOrder);
        map.put("sortField", sortField);
        map.put("areaId", areaId);
        map.put("pageSize", "20");
        map.put("pageNo", pageNo + "");
        map.put("keyword", keyword);
        map.put("searchType", searchType);
        if (!TextUtils.isEmpty(specFilter)) {
            map.put("specFilter", specFilter);
        }
        if (!TextUtils.isEmpty(brandId)) {
            map.put("brandId", brandId);
        }
        System.out.println(map);
        return map;
    }

    /**
     * 商品分类列表
     *
     * @param userId
     * @return
     */
    public static Map<String, String> getSendFileListParams(String userId, int pageNo, int status) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("userId", userId);
        map.put("pagenum", pageNo + "");
        map.put("status", status + "");
        return map;
    }


    /**
     * 广告
     *
     * @param apKey topbanner：首页顶部广告
     * @return
     */
    public static Map<String, String> getADV(String apKey) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("apKey", apKey);
        return map;
    }

    /**
     * 获取收货地址列表
     *
     * @param memberId
     * @return
     */
    public static Map<String, String> getAddressListParams(String memberId) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", memberId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 设置默认地址
     *
     * @param memberId
     * @param addressId
     * @return
     */
    public static Map<String, String> getSetDefaultParams(String memberId, String addressId) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", memberId);
        map.put("addressId", addressId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 删除地址
     *
     * @param addressId
     * @return
     */
    public static Map<String, String> getDeleteAddressParams(String addressId) {
        URL.addressId = addressId;
        Map<String, String> map = new HashMap<String, String>();
        map.put("addressId", addressId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 获取购物车列表
     *
     * @return
     */
    public static Map<String, String> getCartList() {
        Map<String, String> map = new HashMap<String, String>();
        String memberId = SystemEnv.getUser().getPkId();
        map.put("memberId", memberId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 更新购物车数量
     *
     * @param count
     * @param cartId
     * @return
     */
    public static Map<String, String> getUpdateCarCount(int count, String cartId) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("count", count + "");
        map.put("cartId", cartId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 删除购物车
     *
     * @param cartId
     * @return
     */
    public static Map<String, String> getDeleteCart(String cartId) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("cartId", cartId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 添加购物车
     *
     * @param goodsId 商品id
     * @param specId  商品规格id
     * @param count   数量
     * @return
     */
    public static Map<String, String> getAddCart(String goodsId, String specId, String count) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        map.put("specId", specId);
        map.put("goodsId", goodsId);
        map.put("count", count);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 清空购物车
     *
     * @return
     */
    public static Map<String, String> getDeleteAllCart() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 商品详细
     *
     * @return
     */
    public static Map<String, String> getGoodsDetails(String memberId, String goodsId) {
        Map<String, String> map = new HashMap<String, String>();
        if (!TextUtils.isEmpty(memberId)) {
            map.put("memberId", memberId);
        }
        map.put("goodsId", goodsId);
        System.out.println("params:" + map);
        return map;
    }


    /**
     * 添加或取消收藏
     *
     * @param favType  1-收藏商品，2-收藏店铺
     * @param memberId 会员id
     * @param storeId  店铺id
     * @return
     */
    public static Map<String, String> getStoreCollect(String favType, String goodsId, String memberId, String storeId) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("favType", favType);
        map.put("goodsId", goodsId);
        map.put("memberId", memberId);
        map.put("storeId", storeId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * @param pageno
     * @param storeId
     * @return
     */
    public static Map<String, String> getStoreGoods(String pageno, String storeId) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("pagesize", "20");
        map.put("pageno", pageno);
        map.put("storeId", storeId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 店铺详细
     *
     * @param storeId
     * @return
     */
    public static Map<String, String> getStoreDetails(String memberId, String storeId) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", memberId);
        map.put("storeId", storeId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 生成订单
     *
     * @param cartIds
     * @return
     */
    public static Map<String, String> getSubCartToOrder(String cartIds) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("cartIds", cartIds);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 生成订单
     *
     * @param cartId
     * @return
     */
    public static Map<String, String> getSubToOrder(String cartId) {
        Map<String, String> map = new HashMap<String, String>();
        String memberId = SystemEnv.getUser().getPkId();
        map.put("memberId", memberId);
        map.put("cartId", cartId);
        System.out.println("params:" + map);
        return map;
    }


    /**
     * 加载运费
     *
     * @param cartIds
     * @param address
     * @return
     */
    public static Map<String, String> getAddShipping(String cartIds, Address address) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("cartIds", cartIds);
        if (address != null && address.getCityId() != null)
            map.put("cityId", address.getCityId());
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 获取确认订单价格
     *
     * @param cityId   收件地址id 可“”
     * @param freight  邮费py|10,kd|20，免邮“”
     * @param couponId 优惠劵id 可“”
     * @param cartIds  购物车id 1，2，3
     * @param isPd     是否使用余额;0:不使用;1:使用
     * @return
     */
    public static Map<String, String> getPrice(String cityId, String freight, String couponId, String cartIds, String isPd) {
        Map<String, String> map = new HashMap<String, String>();
        String memberId = SystemEnv.getUser().getPkId();
        map.put("memberId", memberId);
        map.put("isPd", isPd);
        map.put("cityId", ActBase.getUnNullString(cityId, ""));
        map.put("freight", ActBase.getUnNullString(freight, ""));
        map.put("couponId", ActBase.getUnNullString(couponId, ""));
        map.put("cartIds", cartIds);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 收藏列表
     *
     * @param type     收藏类型 类型：1-收藏商品，2-收藏店铺
     * @param pageno
     * @param memberId
     * @return
     */
    public static Map<String, String> getMyCollect(String type, int pageno, String memberId) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("type", ActBase.getUnNullString(type, ""));
        map.put("pageSize", "20");
        map.put("pageno", pageno + "");
        map.put("memberId", memberId);
        System.out.println("params:" + map);
        return map;
    }


    /**
     * 保存订单
     *
     * @param invoiceId 发票id
     * @param isPd      是否使用余额支付,0:不使用,1:使用
     * @param couponId
     * @param freight
     * @param paytype
     * @param addressId
     * @param cartIds
     * @return
     */
    public static Map<String, String> getSaveOrder(String invoiceId, String isPd, String couponId, String freight, String paytype,
                                                   String addressId, String cartIds) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("couponId", ActBase.getUnNullString(couponId, ""));
        String memberid = SystemEnv.getUser().getPkId();
        map.put("memberid", memberid);
        if (!TextUtils.isEmpty(invoiceId))
            map.put("invoiceId", invoiceId);
        map.put("isPd", isPd);
        map.put("freight", freight);
        map.put("paytype", paytype);
        map.put("addressId", addressId);
        map.put("cartIds", cartIds);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 获取用户详细
     *
     * @param memberId
     * @return
     */
    public static Map<String, String> getMemberDetail(String memberId) {
        Map<String, String> map = new HashMap<String, String>();
        if (!TextUtils.isEmpty(memberId)) {
            map.put("memberId", memberId);
        }
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 保存地址
     *
     * @param addressId
     * @param telPhone
     * @param address
     * @param areaInfo
     * @param cityId
     * @param areaId
     * @param trueName
     * @param memberId
     * @param zipCode
     * @param provinceId
     * @return
     */
    public static Map<String, String> saveAddress(String addressId, String mobPhone, String telPhone, String address,
                                                  String areaInfo, String cityId, String areaId, String trueName, String memberId, String zipCode, String provinceId) {
        Map<String, String> map = new HashMap<String, String>();
        if (!"-1".equals(addressId)) {
            map.put("addressId", addressId);
        }
        map.put("telPhone", telPhone);
        map.put("mobPhone", mobPhone);
        map.put("address", address);
        map.put("areaInfo", areaInfo);
        map.put("cityId", cityId);
        map.put("areaId", areaId);
        map.put("trueName", trueName);
        map.put("memberId", memberId);
        map.put("zipCode", zipCode);
        map.put("provinceId", provinceId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 意见反馈
     *
     * @param phone
     * @param content
     * @return
     */
    public static Map<String, String> feedback(String phone, String content) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("content", content);
        map.put("phone", phone);
        map.put("email", phone);
        map.put("phoneType", "2");//2代表android
        map.put("title", "Android意见反馈");
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 商品筛选
     *
     * @param keyword
     * @param searchType
     * @return
     */
    public static Map<String, String> goodsFilter(String keyword, String searchType) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("searchType", searchType);
        map.put("keyword", keyword);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 商品规格值接口API
     *
     * @param spid
     * @return
     */
    public static Map<String, String> specValue(String spid) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("spid", spid);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 获取品牌
     *
     * @param classid
     * @return
     */
    public static Map<String, String> getBrandList(String classid) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("classid", classid);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 获取用户优惠劵
     *
     * @return
     */
    public static Map<String, String> getcouponMemberList() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 商品优惠劵
     *
     * @param cartIds
     * @return
     */
    public static Map<String, String> getAddCouponMember(String cartIds) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        map.put("cartIds", cartIds);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 支付
     *
     * @param orderCode
     * @return
     */
    public static Map<String, String> getPay(String orderCode) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("orderCode", orderCode);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 付款成功，查看信息
     *
     * @param paySn
     * @return
     */
    public static Map<String, String> getOrderPay(String paySn) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("paySn", paySn);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 获取订单列表
     *
     * @param status 订单状态:0:已取消;10:待付款;20:待发货;30:待收货;40:交易完成;50:已提交;60:已确认;
     * @return
     */
    public static Map<String, String> getOrderList(String status, int pageNo, String orderType) {
        Map<String, String> map = new HashMap<String, String>();
        if (!TextUtils.isEmpty(status))
            map.put("status", status);
        map.put("pageSize", "20");
        map.put("pageNo", pageNo + "");
        map.put("memberId", SystemEnv.getUser().getPkId());
        map.put("orderType", orderType);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 取消订单  订单确认收货
     *
     * @param ordersn
     * @return
     */
    public static Map<String, String> getCancleOrder(String ordersn) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("ordersn", ordersn);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 修改密码
     *
     * @param newpassword
     * @param oldpassword
     * @param pkId
     * @return
     */
    public static Map<String, String> modifyPwd(String pkId, String oldpassword, String newpassword) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("pkId", pkId);
        map.put("oldpassword", oldpassword);
        map.put("newpassword", newpassword);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 签到
     *
     * @return
     */
    public static Map<String, String> getSign() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        System.out.println("params:" + map);
        return map;
    }

    /**
     * @param goodsflagsname 最新上市：goodsflagsname=newgoods； 推荐商品： goodsflagsname=recommend；
     * @return
     */
    public static Map<String, String> getRecommedgoodslist(String goodsflagsname) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("goodsflagsname", goodsflagsname);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 订单详情
     *
     * @param orderid
     * @return
     */
    public static Map<String, String> getOrderDetail(String orderid) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("orderid", orderid);
        System.out.println("params:" + map);
        return map;
    }

    public static Map<String, String> getSendCode(String mobile) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("mobile", mobile);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 注册
     *
     * @param name
     * @param password
     * @return
     */
    public static Map<String, String> getRegisterParams(String name, String password) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("name", name);
        map.put("password", password);
        System.out.println("params:" + map);
        return map;
    }


    /**
     * 提交文件信息
     */
    public static Map<String, String> getSaveFileParams(String userId, String logisticsId, String endPersonName,
                                                        String endPersonTelephone, String endPersonProviceId, String endPersonCityId, String endPersonCountryId, String endPersonAddress, String startPersonName,
                                                        String startPersonTelephone, String startPersonProviceId, String startPersonCityId, String startPersonCountryId, String startPersonAddress, String goods) {
        StringBuffer entityJson = new StringBuffer();
        entityJson.append("{");
        entityJson.append("\"logisticsId\":\"" + logisticsId + "\",");

        if (!TextUtils.isEmpty(endPersonProviceId)) {
            entityJson.append("\"endProvince\":{\"pkId\":" + endPersonProviceId + "},");
        }
        if (!TextUtils.isEmpty(endPersonCityId)) {
            entityJson.append("\"endCity\":{\"pkId\":" + endPersonCityId + "},");
        }
        if (!TextUtils.isEmpty(endPersonCountryId)) {
            entityJson.append("\"endCountry\":{\"pkId\":" + endPersonCountryId + "},");
        }

        entityJson.append("\"endPerson\":{");
        entityJson.append("\"name\":\"" + endPersonName + "\",");
        entityJson.append("\"telephone\":\"" + endPersonTelephone + "\",");
        if (!TextUtils.isEmpty(endPersonProviceId)) {
            entityJson.append("\"province\":{\"pkId\":" + endPersonProviceId + "},");
        }
        if (!TextUtils.isEmpty(endPersonCityId)) {
            entityJson.append("\"city\":{\"pkId\":" + endPersonCityId + "},");
        }
        if (!TextUtils.isEmpty(endPersonCountryId)) {
            entityJson.append("\"country\":{\"pkId\":" + endPersonCountryId + "},");
        }
        entityJson.append("\"address\":\"" + endPersonAddress + "\"");
        entityJson.append("},");

        if (!TextUtils.isEmpty(startPersonProviceId)) {
            entityJson.append("\"startProvince\":{\"pkId\":" + startPersonProviceId + "},");
        }
        if (!TextUtils.isEmpty(startPersonCityId)) {
            entityJson.append("\"startCity\":{\"pkId\":" + startPersonCityId + "},");
        }
        if (!TextUtils.isEmpty(startPersonCountryId)) {
            entityJson.append("\"startCountry\":{\"pkId\":" + startPersonCountryId + "},");
        }


        entityJson.append("\"startPerson\":{");
        entityJson.append("\"name\":\"" + endPersonName + "\",");
        entityJson.append("\"telephone\":\"" + endPersonTelephone + "\",");
        if (!TextUtils.isEmpty(startPersonProviceId)) {
            entityJson.append("\"province\":{\"pkId\":" + startPersonProviceId + "},");
        }
        if (!TextUtils.isEmpty(startPersonCityId)) {
            entityJson.append("\"city\":{\"pkId\":" + startPersonCityId + "},");
        }
        if (!TextUtils.isEmpty(startPersonCountryId)) {
            entityJson.append("\"country\":{\"pkId\":" + startPersonCountryId + "},");
        }
        entityJson.append("\"address\":\"" + endPersonAddress + "\"");
        entityJson.append("},");
        entityJson.append("\"goods\":\"" + goods + "\"");
        entityJson.append("}");
        Map<String, String> map = new HashMap<String, String>();
        map.put("userId", userId);
        map.put("entity", entityJson.toString());
        System.out.println("params:" + map);
        return map;
    }
    /**
     * 修改头像
     */
    public static Map<String, String> getModifyPhotoParams(String pkId

                                                        ) {
        StringBuffer entityJson = new StringBuffer();
        entityJson.append("{");
        entityJson.append("\"pkId\":\""+pkId+"\"");
//        entityJson.append("\"logisticsId\":\"" + logisticsId + "\",");
//
//        if (!TextUtils.isEmpty(endPersonProviceId)) {
//            entityJson.append("\"endProvince\":{\"pkId\":" + endPersonProviceId + "},");
//        }
//        if (!TextUtils.isEmpty(endPersonCityId)) {
//            entityJson.append("\"endCity\":{\"pkId\":" + endPersonCityId + "},");
//        }
//        if (!TextUtils.isEmpty(endPersonCountryId)) {
//            entityJson.append("\"endCountry\":{\"pkId\":" + endPersonCountryId + "},");
//        }
//
//        entityJson.append("\"endPerson\":{");
//        entityJson.append("\"name\":\"" + endPersonName + "\",");
//        entityJson.append("\"telephone\":\"" + endPersonTelephone + "\",");
//        if (!TextUtils.isEmpty(endPersonProviceId)) {
//            entityJson.append("\"province\":{\"pkId\":" + endPersonProviceId + "},");
//        }
//        if (!TextUtils.isEmpty(endPersonCityId)) {
//            entityJson.append("\"city\":{\"pkId\":" + endPersonCityId + "},");
//        }
//        if (!TextUtils.isEmpty(endPersonCountryId)) {
//            entityJson.append("\"country\":{\"pkId\":" + endPersonCountryId + "},");
//        }
//        entityJson.append("\"address\":\"" + endPersonAddress + "\"");
//        entityJson.append("},");
//
//        if (!TextUtils.isEmpty(startPersonProviceId)) {
//            entityJson.append("\"startProvince\":{\"pkId\":" + startPersonProviceId + "},");
//        }
//        if (!TextUtils.isEmpty(startPersonCityId)) {
//            entityJson.append("\"startCity\":{\"pkId\":" + startPersonCityId + "},");
//        }
//        if (!TextUtils.isEmpty(startPersonCountryId)) {
//            entityJson.append("\"startCountry\":{\"pkId\":" + startPersonCountryId + "},");
//        }
//
//
//        entityJson.append("\"startPerson\":{");
//        entityJson.append("\"name\":\"" + endPersonName + "\",");
//        entityJson.append("\"telephone\":\"" + endPersonTelephone + "\",");
//        if (!TextUtils.isEmpty(startPersonProviceId)) {
//            entityJson.append("\"province\":{\"pkId\":" + startPersonProviceId + "},");
//        }
//        if (!TextUtils.isEmpty(startPersonCityId)) {
//            entityJson.append("\"city\":{\"pkId\":" + startPersonCityId + "},");
//        }
//        if (!TextUtils.isEmpty(startPersonCountryId)) {
//            entityJson.append("\"country\":{\"pkId\":" + startPersonCountryId + "},");
//        }
//        entityJson.append("\"address\":\"" + endPersonAddress + "\"");
//        entityJson.append("},");
//        entityJson.append("\"goods\":\"" + goods + "\"");
        entityJson.append("}");
        Map<String, String> map = new HashMap<String, String>();
//        map.put("pkId", pkId);
        map.put("entity", entityJson.toString());
        System.out.println("params:" + map);
        return map;
    }
    /**
     * 提交评价
     *
     * @param gevalIsAnonymous
     * @param gevalContent
     * @param gevalScore
     * @param sevalDeliverycredit
     * @param sevalServicecredit
     * @param sevalDesccredit
     * @param recId
     * @param orderSn
     * @return
     */
    public static Map<String, String> getSaveReview(int gevalIsAnonymous, String gevalContent
            , String gevalScore, String sevalDeliverycredit, String sevalServicecredit, String sevalDesccredit
            , String recId, String orderSn) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        map.put("gevalIsAnonymous", gevalIsAnonymous + "");
        map.put("gevalContent", gevalContent);
        map.put("gevalScore", gevalScore);
        map.put("sevalDeliverycredit", sevalDeliverycredit);
        map.put("sevalServicecredit", sevalServicecredit);
        map.put("sevalDesccredit", sevalDesccredit);
        map.put("recId", recId);
        map.put("orderSn", orderSn);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 保存发票信息
     *
     * @param invContent 发票内容,传"1": 不开发票;或"2":明细
     * @param invTitle   发票抬头
     * @return
     */
    public static Map<String, String> getSaveInv(String invContent, String invTitle) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        map.put("invState", "1");
        map.put("invContent", invContent);
        map.put("invTitle", invTitle);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 获取账户余额
     *
     * @return
     */
    public static Map<String, String> getAvailable() {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 充值
     *
     * @param amount
     * @return
     */
    public static Map<String, String> getRecharge(String amount) {
        Map<String, String> map = new HashMap<String, String>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        map.put("amount", amount);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 退货列表
     *
     * @return
     */
    public static Map<String, String> getRejectList(int pageNo, int pageSize) {
        Map<String, String> map = new HashMap<>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        map.put("pageSize", String.valueOf(pageSize));
        map.put("pageNo", String.valueOf(pageNo));
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 退货和换货参数一致
     *
     * @return
     */
    public static Map<String, String> getSubmitRejectGoods(String goodsNum, String orderGoodsId, String buyerMessage, String orderId) {
        Map<String, String> map = new HashMap<>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        map.put("goodsNum", goodsNum);
        map.put("orderGoodsId", orderGoodsId);
        map.put("buyerMessage", buyerMessage);
        map.put("orderId", orderId);
        System.out.println("params:" + map);
        return map;
    }

    public static Map<String, String> getSubmitRefund(String refundAmount, String buyerMessage, String orderGoodsId, String orderId) {
        Map<String, String> map = new HashMap<>();
        map.put("refundAmount", refundAmount);
        map.put("buyerMessage", buyerMessage);
        map.put("orderGoodsId", orderGoodsId);
        map.put("orderId", orderId);
        map.put("memberId", SystemEnv.getUser().getPkId());
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 退货
     *
     * @return
     */
    public static Map<String, String> getFileDetails(String goodsId) {
        Map<String, String> map = new HashMap<>();
        map.put("pkId", goodsId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 换货
     *
     * @param barterId
     * @return
     */
    public static Map<String, String> getChangeGoodsDetails(String barterId) {
        Map<String, String> map = new HashMap<>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        map.put("barterId", barterId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 换货-确认收货
     *
     * @param barterId
     * @return
     */
    public static Map<String, String> getConfirm(String barterId) {
        Map<String, String> map = new HashMap<>();
        map.put("memberId", SystemEnv.getUser().getPkId());
        map.put("barterId", barterId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 退货
     *
     * @return
     */
    public static Map<String, String> getRejectDelivery(String invoiceNo, String expressName, String refundId) {
        Map<String, String> map = new HashMap<>();
        map.put("invoiceNo", invoiceNo);
        map.put("expressName", expressName);
        map.put("refundId", refundId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 换货
     *
     * @return
     */
    public static Map<String, String> getBarterDelivery(String invoiceNo, String expressName, String barterId) {
        Map<String, String> map = new HashMap<>();
        map.put("invoiceNo", invoiceNo);
        map.put("expressName", expressName);
        map.put("barterId", barterId);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 根据选择的规格刷新商品的价格和库存
     **/
    public static Map<String, String> getGoodsDetail(String goodsId, String specIds) {
        Map<String, String> map = new HashMap<>();
        map.put("goodsId", goodsId);
        map.put("specIds", specIds);
        System.out.println("params:" + map);
        return map;
    }

    /**
     * 获取商品评论更多
     */
    public static Map<String, String> getGoodsCommentMore(String goodsId, int pageNo) {
        Map<String, String> map = new HashMap<>();
        map.put("goodsId", goodsId);
        map.put("pageNo", String.valueOf(pageNo));
        System.out.println("params:" + map);
        return map;
    }
}